package com.qf.service.impl;

import com.qf.dao.RoleDao;
import com.qf.entity.Role;
import com.qf.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 2019/9/29
 * Administrator
 * springdata0928
 * 面向对象面向君  不负代码不负卿
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleDao roleDao;
    public Role findbyid(int roleid) {
        return roleDao.findOne(roleid);
    }

    public List<Role> findbyrolename(String name) {
        return roleDao.findByMenus_menuname(name);
    }
}
